package team.zero.lemon.common.persistence;

import java.util.List;

/**
 * 分页参数类
 *
 */
public class Page<T> {

    public static final int DEFAULT_PAGE_SIZE = 10;

    public int pageSize;
    public int pageIndex;
    public int totalCount;

    public List<T> list;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
